package edu.uow.devdocs
/**
 * The ProjectDocumentation entity.
 *
 * @author    
 *
 *
 */
class ProjectDocumentation {
    static mapping = {
         table 'SUB_SYSTEM_DOCUMENTATION'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id column:'SUB_SYSTEM_DOCUMENTATION'
		 id generator: 'sequence', params:[sequence:'SUB_SYSTEM_DOCUMENTATION_SEQ']
         project column:'SUBSYSTEM_ID'
    }
    String description
    String documentation
    Date lastUpdated
    // Relation
    Project project

    static constraints = {
        description(size: 0..255)
        documentation(nullable: true)
        lastUpdated(nullable: true)
        project()
    }
    String toString() {
        return "${projectDocumentation}" 
    }
}
